package atguigu.str;

import java.util.Date;

public class Str4 {

    public static void main(String[] args) {
        String str = "44927.0";
        double v = Double.parseDouble(str);
        Date date = new Date();
        date.setTime((long)v);
        System.out.println(date);

        str = "-20";
        String max = "12";
        String min = "1";
        double v1 = Double.parseDouble(str);
        double v3 = Double.parseDouble(max);
        double v2 = Double.parseDouble(min);

        if(v1 < v2 || v1 > v3){
            System.out.println("错误");
        }else{
            System.out.println("正常");
        }


    }
}
